home *** CD-ROM | disk | FTP | other *** search
/ PC Graphics Unleashed / PC Graphics Unleashed.iso / ch11 / demo.pi < prev    next >
Text File  |  1994-06-10  |  1KB  |  74 lines

  1. //DEMO.PI
  2.  
  3. include "colors.inc"
  4. include "texture.inc"
  5.  
  6. viewpoint {
  7.  from      <0, 1.0, -5>
  8.  at        <0.0, 0.0, 0.0>
  9.  up        <0.0, 1.0, 0.0>
  10.  angle           45
  11.  resolution      200,200
  12.  aspect          1.0
  13.  }
  14.  
  15. // LIGHT_SOURCE
  16. light <0,  0,  -100>
  17. light <50, 50, -50>
  18.  
  19.     
  20. background lightgrey
  21.  
  22. //PLATE
  23. object {
  24.     polygon 4, <-1,0,-1>, <1,0,-1>, <1,0,1>, <-1,0,1>
  25.     //rotate <-90, 0, 0>
  26.     translate <0,-1.5, -0.2>
  27.     texture {
  28.       checker matte_white, matte_black
  29.       scale <0.5, 0.5, 0.5>
  30.     }
  31.  
  32. }
  33.  
  34. //BOX
  35. object {
  36.     box <-1, -1, -1>, <1, 1, 1>
  37.     scale <0.5, 0.5, 0.5>
  38.     rotate <-10, 10, 0>
  39.     shiny_green
  40. }
  41.  
  42. //CYLINDER
  43.  
  44. object {
  45.     cylinder <0,0,0>, <0,0.4,0>, 0.4
  46.     rotate <-15,0,0>
  47.     translate <-0.8,1.0,0>
  48.     wooden
  49. }
  50.  
  51. //TORUS
  52. object {
  53.     torus 0.5, 0.1, <0,0,0>, <0,1,0>
  54.     rotate <-30,0,-10>
  55.     translate <0.7, 1.4, 0>
  56.     white_marble
  57. }
  58.  
  59. //CONE
  60. object {
  61.     cone <0.0, -1, 0.0>, 0.5, <0.0, 0.0, 0.0>, 0.0
  62.     translate <1.4, 0.48, 0>
  63.     shiny_blue
  64. }
  65.  
  66. //SPHERE
  67. object {
  68.     sphere < -0.96, 0, -1.12>, 0.25
  69.     shiny_red
  70. }
  71.  
  72.  
  73.  
  74.